package com.charity.rest.controller.manage.website;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.charity.website.vo.query.WebUserOperationPageQuery;
import com.charity.website.service.IWebUserOperationService;
import com.charity.website.vo.model.WebUserOperationModel;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * 网站用户操作  前端控制器
 *
 */
@RestController
@RequestMapping("/manage/manageUserOperation")
@AllArgsConstructor
public class ManageUserOperationController {
    
    private final IWebUserOperationService webUserOperationService;

    @PostMapping("/getPageList")
    public IPage<WebUserOperationModel> getPageList(@RequestBody WebUserOperationPageQuery query) {
        return webUserOperationService.getPageList(query);
    }

    @GetMapping(value = "/{id}")
    public WebUserOperationModel getWebUserOperationById(@PathVariable("id") Long id) {
        return webUserOperationService.getWebUserOperationById(id);
    }
}
